package cn.jiedh.app.meiweidk.entity;

import java.util.List;

/**
 * @name：贷款列表实体类
 * @author：司马林
 * @phone：18423134135
 * @createTime：2017/10/21
 */

public class LoanListBean {
    private int type;//1APP原生列表 2 H5
    private String link;//跳转链接 （H5返回）
    @Deprecated //被改成link了
    private String url;//跳转链接 （H5返回）
    private String shareLink;//分享链接（H5返回）
    private String shareImgUrl;//分享图片地址（H5返回）
    private String shareTitle;//分享标题（H5返回）
    private String shareContent;//	分享内容（H5返回）
    private String bannerImgUrl;//顶部banner的图片地址（原生页面返回）
    private int total;//总数（原生页面返回）
    private List<DataList> dataList;

    public List<DataList> getDataList() {
        return dataList;
    }

    public void setDataList(List<DataList> dataList) {
        this.dataList = dataList;
    }

    public static class DataList {
        /**
         * @param totlal 总数
         * @param productId 产品id
         * @param name 产品名
         * @param imgUrl 图片地址
         * @param rateType 利率类型（ 1月利率 2日利率）
         * @param rate 利率（需要自己添加百分号）
         * @param adver 广告语
         * @param moneyMin 最小金额
         * @param moneyMax 最大金额
         * @param termMin 最小期限
         * @param termMax 最大期限
         * @param successRate 成功率（需要自己添加百分号）
         * @param newWhether 是否新品（0 否 1 是）
         * @param hotWhether 是否热门（0 否 1 是）
         * @param applyUrl 申请链接
         */
        private int total;
        private int productId;
        private String name;
        private String imgUrl;
        private int rateType;
        private double rate;
        private String adver;
        private int moneyMin;
        private int moneyMax;
        private int termMin;
        private int termMax;
        private String successRate;
        private int newWhether;
        private int hotWhether;
        private String applyUrl;
        public String getRateTypeStr(){
            switch (rateType){
                case 1:
                    return "月";
                default:
                    return "日";
            }
        }
        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getProductId() {
            return productId;
        }

        public void setProductId(int productId) {
            this.productId = productId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public int getRateType() {
            return rateType;
        }

        public void setRateType(int rateType) {
            this.rateType = rateType;
        }

        public double getRate() {
            return rate;
        }

        public void setRate(double rate) {
            this.rate = rate;
        }

        public String getAdver() {
            return adver;
        }

        public void setAdver(String adver) {
            this.adver = adver;
        }

        public int getMoneyMin() {
            return moneyMin;
        }

        public void setMoneyMin(int moneyMin) {
            this.moneyMin = moneyMin;
        }

        public int getMoneyMax() {
            return moneyMax;
        }

        public void setMoneyMax(int moneyMax) {
            this.moneyMax = moneyMax;
        }

        public int getTermMin() {
            return termMin;
        }

        public void setTermMin(int termMin) {
            this.termMin = termMin;
        }

        public int getTermMax() {
            return termMax;
        }

        public void setTermMax(int termMax) {
            this.termMax = termMax;
        }

        public String getSuccessRate() {
            return successRate;
        }

        public void setSuccessRate(String successRate) {
            this.successRate = successRate;
        }

        public int getNewWhether() {
            return newWhether;
        }

        public void setNewWhether(int newWhether) {
            this.newWhether = newWhether;
        }

        public int getHotWhether() {
            return hotWhether;
        }

        public void setHotWhether(int hotWhether) {
            this.hotWhether = hotWhether;
        }

        public String getApplyUrl() {
            return applyUrl;
        }

        public void setApplyUrl(String applyUrl) {
            this.applyUrl = applyUrl;
        }
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getShareLink() {
        return shareLink;
    }

    public void setShareLink(String shareLink) {
        this.shareLink = shareLink;
    }

    public String getShareImgUrl() {
        return shareImgUrl;
    }

    public void setShareImgUrl(String shareImgUrl) {
        this.shareImgUrl = shareImgUrl;
    }

    public String getShareTitle() {
        return shareTitle;
    }

    public void setShareTitle(String shareTitle) {
        this.shareTitle = shareTitle;
    }

    public String getShareContent() {
        return shareContent;
    }

    public void setShareContent(String shareContent) {
        this.shareContent = shareContent;
    }

    public String getBannerImgUrl() {
        return bannerImgUrl;
    }

    public void setBannerImgUrl(String bannerImgUrl) {
        this.bannerImgUrl = bannerImgUrl;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }


}
